package com.sicheng.metadata.juc.线程通信.lock;

/**
 * @author zsc
 * @version 1.0
 * @date 2022/2/2 21:19
 */
public class PrintApp {
    public static void main(String[] args) {
        PrintNumber printNumber = new PrintNumber();
        for (int i = 0; i < 3; i++) {
            int finalI = i;
            new Thread(() -> {
                for (int j = 0; j < 10; j++) {
                    printNumber.printNumber(finalI + 1);
                }
            }, String.valueOf(i + 1)).start();
        }
    }
}
